﻿using System;
using Volo.Abp.Domain.Entities;
using Volo.Abp.MultiTenancy;
using Joy.Erp.BasicArchives.Core;
using Joy.Erp.BasicArchives.Core.UniqueCodes;

namespace Joy.Erp.BasicArchives.Staff
{
    /// <summary>
    /// 业务员
    /// </summary>
    public class Operator : ArchiveAggregateRoot, IMultiTenant, IUniqueCode, IHasConcurrencyStamp
    {
        /// <summary>
        /// 所属租户
        /// </summary>
        public Guid? TenantId { get; set; }

        /// <summary>
        /// 部门
        /// </summary>
        public Guid DepartmentId { get; set; }

        /// <summary>
        /// 部门
        /// </summary>
        public Department Department { get; set; }

        /// <summary>
        /// 业务员名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 业务员类型
        /// </summary>
        public OperatorType OperatorType { get; set; }

        /// <summary>
        /// 是否启用
        /// </summary>
        public bool Enabled { get; set; }
    }
}
